package cn.wx.scholar.core.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cn.wx.common.persistence.base.BaseController;
import cn.wx.common.persistence.web.ResponseData;
import cn.wx.scholar.core.entity.qo.SocialYeeSightQ;
import cn.wx.scholar.core.service.SocialFromYeeSightService;
/**
 *   @description : Social 控制器
 *   ---------------------------------
 *   @author  
 *   @since 2018-11-16
 */
@RestController
@RequestMapping("/sholar/yeesight/social")
public class SocialFromYeeSightController extends BaseController {
	
	@Autowired
	private SocialFromYeeSightService socialService;

	/**
	 * @description : 通过条件获取社交分页 ---------------------------------
	 * @author :
	 * @since : Create in 2018-07-15
	 */
	@RequestMapping(value = "/query/page", method = RequestMethod.POST)
	public ResponseData queryUnique(SocialYeeSightQ socialQ) throws Exception {
		return success(socialService.getSearchResult(socialQ));
	}
	
}